﻿@using LogisticDatabase.Models;

<link rel="stylesheet" type="text/css" href="@Url.Content("/Content/jquery.dataTables.min.css")"/>
<script src="@Url.Content("/Scripts/jquery.dataTables.min.js")"></script>
<script src=" @Url.Content("/Scripts/order/list.js")">

</script>

<p class="title">Orders</p>


<form>
    <span class="label">
        Factory Name
    </span>
        <select id="factory">
            @{
                List<Factory> factories = (List<Factory>)ViewBag.Factories;
            }
            @foreach (Factory factory in factories)
            {

                <option value="@factory.Id">@factory.Name</option>

            }


        </select>
        <!--<input type="button" id="listOrders" value="Listáz"/>-->
</form>
    
<div id="factorylistimage">


</div>
<div id="ordertable">
    <table id="orders" class="display">
        <thead>
            <tr class="title">
                <th>ID</th>
                <th>Producer</th>
                <th>Product</th>
                <th>Date</th>
                <th>Pieces</th>
                <th>State</th>
            </tr>
        </thead>
        <tbody id="tablecontent"></tbody>
    </table>

</div>

